package com.bawei.base.room

import android.content.Context
import androidx.room.Room

class RoomUtlis {
    companion object {
        private lateinit var appDataBase: AppDataBase
        fun init(context: Context) {
            appDataBase = Room.databaseBuilder(context, AppDataBase::class.java, "park2211A.db")
                .allowMainThreadQueries()
                .build()
        }
        fun getNewsDao()=appDataBase.newsDao()
    }
}